const http = uni.$u.http

/*统一封装api*/
export default {
	// 账号密码登陆
	login: (data) => http.post('user/login', data),
	// 手机号验证码登录
	mobilelogin: (data) => http.post('user/mobilelogin', data),
	// 注册
	register: (data) => http.post('user/register', data),
	// 修改密码
	resetpwd: (data) => http.post('user/resetpwd', data),
	// 支付密码
	paypwd: (data) => http.post('user/paypwd', data),
	// 修改手机号
	changemobile: (data) => http.post('user/changemobile', data),
	//获取短信验证码
	verification: (data) => http.post('sms/send', data),
	//个人中心
	user: () => http.post('my/personal'),
	//首页
	index: () => http.post('index/index'),
	//首页商品 搜索
	indexGoods: (data) => http.post('index/index_goods',data),
	//商品详情
	goodDetail: (data) => http.post('index/good_detail',data),
	//立即购买
	buyNow: (data) => http.post('index/buy_now',data),
	//一级分类
	categoryIndex: (data) => http.post('category/index',data),
	//二级分类
	categoryReclassify: (data) => http.post('category/reclassify',data),
	//二级分类商品
	classifiedGoods: (data) => http.post('category/classified_goods',data),
	//二级分类商品
	addCart: (data) => http.post('cart/add',data),
	//购物车列表
	cartlist: (data) => http.post('cart/list',data),
	//购物车 更改数量
	cartchange: (data) => http.post('cart/change',data),
	//购物车 单个删除
	cartdel: (data) => http.post('cart/del',data),
	//搜索记录
	searchLog: (data) => http.post('index/search_log',data),
	//记录删除
	searchDel: (data) => http.post('index/search_del',data),
	//读取省市区数据
	leaderArea: (data) => http.post('address/area',data),
	//添加地址
	addressadd: (data) => http.post('address/add',data),
	//删除地址
	addressdel: (data) => http.post('address/del',data),
	//地址列表
	addresslists: (data) => http.post('address/lists',data),
	//地址详情
	addressdetail: (data) => http.post('address/detail',data),
	//编辑地址
	addressedit: (data) => http.post('address/edit',data),
	//运费价格
	freightprice: (data) => http.post('order/freight_price',data),
	//下单
	submitorder: (data) => http.post('order/submit_order',data),
	//订单支付
	orderpay: (data) => http.post('order/pay',data),
	//base64 图片上传
	imgUpload: (data) => http.post('common/img_upload', data),
	//修改个人资料
	myprofile: (data) => http.post('user/profile', data),
	//账号绑定
	binding: (data) => http.post('my/binding', data),
	//账号绑定详情
	bindinfo: (data) => http.post('my/bind_info', data),
	//申请提现
	withdrawal: (data) => http.post('order/cash', data),
	//我的订单
	myOrder: (data) => http.post('my/order', data),
	//取消订单
	cancelOrder: (data) => http.post('my/cancel', data),
	//确认收货
	confirmOrder: (data) => http.post('my/confirm', data),
	//订单详情
	orderDetail: (data) => http.post('my/order_detail', data),
	//添加商品评论
	addComment: (data) => http.post('comment/add_comment', data),
	//商品详情 更多评论
	commentMore: (data) => http.post('index/comment_more', data),
	//添加/取消商品收藏
	addCollect: (data) => http.post('comment/add_collect', data),
	// 收藏列表
	collect_list: (data) => http.post('comment/collect_list', data),
	//隐私协议 、 用户服务协议
	agreement: (data) => http.post('index/agreement', data),
	//分销中心
	myDistribution: (data) => http.post('my/distribution', data),
	//佣金明细
	commissionDetail: (data) => http.post('my/commission_detail', data),
	//我的团队
	myTeam: (data) => http.post('my/my_team', data),
	//余额互转
	transferBalance: (data) => http.post('my/transfer_balance', data),
	//佣金转余额
	commissionBalance: (data) => http.post('my/commission_balance', data),
	//余额充值
	balanceRecharge: (data) => http.post('recharge/balance_recharge', data),
	//账户余额记录
	balanceLog: (data) => http.post('my/balance_log', data),
	//微信绑定手机号
	wxbind: (data) => http.post('user/wxbind', data),
	//微信小程序支付
	wxpay: (data) => http.post('order/wx_pay', data),
	//微信 余额充值
	wxbalancerecharge: (data) => http.post('recharge/wx_balance_recharge', data),
	//获取openid
	wxInfo: (data) => http.post('index/wxinfo', data),
	//小程序二维码
	qrcode: (data) => http.post('index/appletCode', data),
	//视频控制
	isopen: (data) => http.post('index/is_open', data),
	//视频控制
	delCancel: (data) => http.post('my/del_cancel', data),
	//查看物流
	logistics: (data) => http.post('my/logistics', data),
	//提现参数
	withdrawInfo: (data) => http.post('index/withdraw', data),
	//资讯详情
	newsDetail: (data) => http.post('news/news_detail', data),
	//资讯点赞
	newsLike: (data) => http.post('news/news_like', data),
	//新闻评论列表
	commentList: (data) => http.post('news/comment_list', data),
	//添加评论
	newsComment: (data) => http.post('news/news_comment', data),
	//我的收藏
	myCollect: (data) => http.post('my/my_collect', data),
	//注销账号
	destruction: (data) => http.post('user/destruction', data),
	//新闻一级分类
	oneCate: (data) => http.post('news/one_cate', data),
	//新闻二级分类
	twoCate: (data) => http.post('news/two_cate', data),
	//资讯列表
	newsList: (data) => http.post('news/news_list', data),
	//微信 省市区 转换
	wxarea: (data) => http.post('address/wx_area', data),
	//添加/修改售后订单
	addservice: (data) => http.post('complaint/add_service', data),
	//退款/订单售后
	serverdetail: (data) => http.post('my/server_detail', data),
	//物流提交
	expressInfo: (data) => http.post('my/express_info', data),
	//消息
	message: (data) => http.post('my/message', data),
	//图片上传 - 获取直传信息-七牛
	upload: (data) => http.post('index/uploadData', data),
	//app分享图片
	appCode: (data) => http.post('index/app_code', data),
	//解析手机号
	decryptPhone: (data) => http.post('user/decryptPhone', data),
	//获取openid
	getOpenidByCode: (data) => http.post('user/getOpenidByCode', data),
	//公众号获取openid
	getWeixinOpenid: (data) => http.post('user/getWeixinOpenid', data),
	//公众号状态
	setStatus: (data) => http.get('user/setStatus', data),
	// 获取咨询列表
	newsList: (data) => http.post('index/newsList', data),
	// 咨询详情
	getNewsContent: (data) => http.post('index/getNewsContent', data),
	// 优惠卷列表
	getCouponList: (data) => http.post('coupon/coupon', data),
	// 领取优惠卷
	couponReceive: (data) => http.post('coupon/receive', data),
	// 我的优惠卷
	couponAll: (data) => http.post('coupon/couponAll', data),
}
